<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div></div>
    <div></div>
    <p></p>
    <p></p>
    <h1></h1>
    <h2>继续修改</h2>
</body>
<script>
    // function getTime(){
    //     document.querySelector('div').innerHTML = new Date().toLocaleString();
    //     setTimeout(getTime,1000);
    // }
    // getTime();
    //浅拷贝
    const obj = {
        uname:'pink',
        age:18
    };
    let o = {};
    function deepCopy(newObj,oldObj){
        for(let k in oldObj){
            newObj[k]=oldObj[k];
        }
    }
    deepCopy(o,obj);
    console.log(o);
    

</script>
</html>